package org.jeecg.modules.inventory.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.inventory.entity.BussInventory;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.jeecg.modules.inventory.vo.BussInventoryPage;

/**
 * @Description: 库存管理
 * @Author: jeecg-boot
 * @Date:   2024-07-01
 * @Version: V1.0
 */
public interface BussInventoryMapper extends BaseMapper<BussInventory> {

    public BussInventory selectByParam(@Param("materialId") String materialId,@Param("storehouse") String storehouse);

    public IPage<BussInventory> myPage(Page<BussInventory> page, @Param(Constants.WRAPPER) QueryWrapper<BussInventory> queryWrapper);

    List<BussInventoryPage> selectByIds(@Param("idArray") String[] idArray,@Param("warehouseId") String warehouseId);

    public IPage<BussInventory> myInventoryPage(Page<BussInventory> page,  @Param("model") BussInventory bussInventory);

}
